package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.Visit;
import com.zzyl.vo.TimeVo;
import com.zzyl.vo.VisitVo;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Description CustomerReservationMapper
 * @Author Wen Jie
 * @Date 2024-09-14
 */
@Mapper
public interface CustomerReservationMapper {
    void addCustomerReservation(VisitVo visitVo);

    Page<Visit> selectByPage(Integer status);

    void cancel(Long id);

    Integer cancelledCount(Long userId);

    Integer countByTime(String formattedTime);
}
